package org.example;

/**
 * @BelongsProject: javaFoundation
 * @BelongsPackage: org.example
 * @Author: dtq
 * @CreateTime: 2023-10-30  16:24
 * @Description: 饿汉模式
 * @Version: 1.0
 */
public class Single {

    private static Single single = new Single();

    private Single() {

    }

    public static Single getSingle() {
        return single;
    }
}
